/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 城市游记图片Entity
 * @author 罗天文
 * @version 2018-05-30
 */
public class HkCityAdvImg extends DataEntity<HkCityAdvImg> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv cityAdv;		// 城市广告id
	private String imgSrc;		// 图片
	private String rank;		// 序号
	
	public HkCityAdvImg() {
		super();
	}

	public HkCityAdvImg(String id){
		super(id);
	}

	@NotNull(message="城市广告id不能为空")
	public HkAllAdv getCityAdv() {
		return cityAdv;
	}

	public void setCityAdv(HkAllAdv cityAdv) {
		this.cityAdv = cityAdv;
	}
	
	@Length(min=0, max=200, message="图片长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=32, message="序号长度必须介于 0 和 32 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
}